package cn.wizzer.app.web.commons.utils;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import cn.wizzer.framework.base.service.BaseService;
import cn.wizzer.framework.base.service.BaseServiceImpl;
import org.apache.poi.ss.formula.functions.T;
import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.mvc.annotation.Param;

public class DrText extends BaseServiceImpl<T> {
	public DrText(Dao dao) {
		super(dao);
	}

	public String Exceldr(HttpSession session, HttpServletRequest req, @Param("execelFile") String execelFile) {
		try {
			/*String[] heads = new String[] { "jglx","jgjc","jgmc","zttr","cpmc","zjgm","zftr","zcqy","sfxw","qyzj","zcnr","jxqk" };
			//获取excel数据塞入对象
			DoExcelUtil<T_xwqy_jrhljr> e = new DoExcelUtil<T_xwqy_jrhljr>(new T_xwqy_jrhljr());
			List<T_xwqy_jrhljr> list = e.excel(dao,Globals.APP_BASE_PATH + execelFile, heads,2);
			// 遍历封装excel值的list
			for (int i = 0; i < list.size(); i++) {
				T_xwqy_jrhljr jrhljr = list.get(i);
				//验证
				if (!StringUtil.null2String(jrhljr.getLczt()).equals("")) {

				}

				dao.insert(jrhljr);
			}*/

		} catch (Exception ex) {
			ex.printStackTrace();
		} finally {
		}
		return "";
	}
}
